﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace winformcontrol
{
    public class lineobj
    {
        public Point m_startpoint; //起始点
        public Point m_endpoint; //截止点

        public lineobj(int x, int y)
        {
            m_startpoint = new Point(x, y);
            m_endpoint = new Point(x, y);
        }

        public void draw(Graphics g)
        {
            g.DrawLine(new Pen(Color.Blue, 2), m_startpoint, m_endpoint);
        }
    }

}
